package com.xiguaji.tiktok.v1.tiktok.aweme.repository;

import com.xiguaji.tiktok.utils.jdbc.PageResponse;
import com.xiguaji.tiktok.v1.tiktok.aweme.dto.BloggerAwemeResponse;

public interface AwemeExtRepository {

    /**
     *
     * @param id
     * @param searchType, 0.根据bloggerId进行查询 1.根据musicId进行查询
     * @param page
     * @param pageSize
     * @param startTime
     * @param endTime
     * @param sort
     * @return
     */
    PageResponse<BloggerAwemeResponse> getPage(long id, SearchType searchType, int page, int pageSize, long startTime, long endTime, int sort);

    enum SearchType{
        BLOGGER(0),
        MUSIC(1);

        SearchType(Integer value){
            this.value = value;
        }
        private Integer value;

        public Integer getValue() {
            return value;
        }
    }
}


